package com.ruoyi.prod.entity.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ruoyi.prod.enums.LogModuleEnum;
import com.ruoyi.prod.enums.LogTypeEnum;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 基础管理-操作日志
 * </p>
 *
 * @author 强子初
 * @since 2023-02-18
 */
@Getter
@Setter
@TableName("base_log")
@ApiModel(value = "操作日志对象", description = "基础管理-操作日志")
public class BaseLog extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("id")
    @TableId(value = "id", type = IdType.ASSIGN_UUID)
    private String id;

    @ApiModelProperty("被记录的对象")
    @TableField("super_id")
    private String superId;

    @ApiModelProperty("记录模块")
    @TableField("module")
    private LogModuleEnum module;

    @ApiModelProperty("记录类型")
    @TableField("type")
    private LogTypeEnum type;

    @ApiModelProperty("记录内容")
    @TableField("content")
    private String content;
}
